package day04;

import java.util.ArrayList;
import java.util.Collection;

public class Demo05 {

	public static void main(String[] args) {
		
		Collection<PersonS> col=new ArrayList<PersonS>();
		col.add(new PersonS("Tom",12));
		col.add(new PersonS("Jerry",32));
		PersonS p=new PersonS("Tom",12);
		boolean b=col.contains(p);
		System.out.println(b);
		
		
		
		
	}

}
